<template>
	<scroll-view scroll-y="true" >
		<view v-for="(item,index) in zhiboList">
		    <video src="http://cssauth.guochunhui.cn/live/qcy.flv" style="width: 100vw;height: 100vh;" :autoplay="true" controls></video>
		</view>
	</scroll-view>
</template>

  

<script>
	import env from '../../../utils/env'
	import *  as video from "@/api/video"
	
    export default {
		data(){
			return {
				zhiboList:[],
				query:{
					pageNum :1,
					pageSize:10,
				},
			}
		},
		onLoad(){
			this.getZhiboList()
		},
		methods: {
			getZhiboList(){
				video.getVideo(this.query).then((res) => {
					res.rows.forEach((v)=>{
						v.coverImage = `${env.imgUrl}` + v.coverImage
						v.videoUrl = `${env.imgUrl}` + v.videoUrl
						this.zhiboList.push(v)
					})
				})
			},
		},
	}

</script>